package com.company.dcm.dto;

import com.company.dcm.utils.excel.ExcelExport;
import lombok.Data;

@Data
public class CountDto {
    /**
     * 布号
     */
    @ExcelExport("布匹编号")
    private String clothCode;

    /**
     * 工厂名
     */
    @ExcelExport("工厂")
    private String factoryName;

    /**
     * 车间名
     */
    @ExcelExport("车间")
    private String workShopName;

    /**
     * 机台号
     */
    @ExcelExport("机台号")
    private String deviceCode;

    /**
     * 总扣分
     */
    @ExcelExport("总扣分")
    private int deductPoints;

    @ExcelExport("线疵")
    private int xianCi;

    @ExcelExport("烂针")
    private int lanZhen;

    @ExcelExport("漏针")
    private int louZhen;

    @ExcelExport("不规则")
    private int buGuiZe;

    @ExcelExport("纵向")
    private int zhongXiang;

    @ExcelExport("孔洞")
    private int kongDong;

    @ExcelExport("横向")
    private int hengXiang;

    @ExcelExport("掉布")
    private int diaoBu;

    @ExcelExport("双抽针")
    private int shuangChouZhen;

    @ExcelExport("斑点")
    private int banDian;

    @ExcelExport("针路")
    private int zhenLu;


    public void addDeductPoints(int points) {
        deductPoints+=points;
    }

    public void addLanZhen(){
        lanZhen++;
    }
    public void addZhongXiang(){
        zhongXiang++;
    }
    public void addXianCi(){
        xianCi++;
    }
    public void addLouZhen(){
        louZhen++;
    }
    public void addBuGuiZe(){
        buGuiZe++;
    }
    public void addKongDong(){
        kongDong++;
    }
    public void addHengXiang(){
        hengXiang++;
    }
    public void addDiaoBu(){
        diaoBu++;
    }
    public void addShuangChouZhen(){
        shuangChouZhen++;
    }
    public void addBanDian(){
        banDian++;
    }
    public void addZhenLu(){
        zhenLu++;
    }
}
